﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true"
    CodeBehind="AddOrganizations.aspx.cs" Inherits="MockPrjTeam2.Pages.Forms.AddOrganizations" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <link href="../../Resource/CSS/style/reset.css" rel="stylesheet" type="text/css" />
    <link href="../../Resource/CSS/style/root.css" rel="stylesheet" type="text/css" />
    <link href="../../Resource/CSS/style/grid.css" rel="stylesheet" type="text/css" />
    <link href="../../Resource/CSS/style/typography.css" rel="stylesheet" type="text/css" />
    <link href="../../Resource/CSS/style/jquery-ui.css" rel="stylesheet" type="text/css" />
    <link href="../../Resource/CSS/style/jquery-plugin-base.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/jquery.min.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/toogle.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/jquery.tipsy.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/jquery.uniform.min.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/jquery.tablesorter.min.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/popup.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/jquery.ui.widget.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/jquery.ui.accordion.js") %>"></script>
    <script type="text/javascript" src="<%= Page.ResolveUrl("../../Resource/JS/js/jquery.ui.tabs.js") %>"></script>
    <script type="text/javascript">
        $(function () {
            $("#tabs").tabs();
        });

        function ConfirmApproval(message) {
            if (confirm(message)) {
            } else {

            }
        }
    </script>
    <div class="grid740 simplebox relative">
        <asp:Panel ID="PanelSuccess" Visible="False" CssClass="albox succesbox" runat="server">
            <b>Success :</b>
            <asp:Literal ID="LiteralSuccess" runat="server"></asp:Literal>
            <a href="#" class="close tips" title="close">close</a>
        </asp:Panel>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" ValidationGroup="org"
            EnableTheming="True" />
             <h2 style="color: #008000; background-color: #CCFFFF;" >Add Organization</h2>
        <div id="tabs">
            <ul>
                <li>
                    <asp:HyperLink ID="LinkDetails01" NavigateUrl="#DetailsPanel01" runat="server">Details 1</asp:HyperLink></li>
                <li>
                    <asp:HyperLink ID="LinkDetails02" NavigateUrl="#DetailsPanel02" runat="server">Details 2</asp:HyperLink></li>
                <li>
                    <asp:HyperLink ID="LinkDetails03" NavigateUrl="#DetailsPanel03" runat="server" Visible="False">Details 3</asp:HyperLink></li>
            </ul>
            <span class="top-right-cornor">
                <asp:Button CssClass="button" ID="ButtonSave" runat="server" Text="Save" OnClick="ButtonSave_Click"
                    ValidationGroup="org" />
                <asp:Button CssClass="button" ID="BtnBack" runat="server" Text="Back" OnClick="BtnBack_Click" />
            </span>
            <asp:Panel ID="DetailsPanel01" ClientIDMode="Static" runat="server">
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelOrganisationName" runat="server" Text="Organisation Name" CssClass="st-labeltext level1 required"
                            AssociatedControlID="TxtOrganizationName">
                            <asp:RequiredFieldValidator ID="RequiredOrganizationName" runat="server" ErrorMessage="*Please input Organisation Name "
                                Display="None" SetFocusOnError="true" ForeColor="red" ControlToValidate="TxtOrganizationName"
                                ValidationGroup="org" />
                        </asp:Label><asp:TextBox ID="TxtOrganizationName" CssClass="st-forminput" runat="server"
                            Width="210px"></asp:TextBox></div><div class="half last">
                        <asp:Label ID="LabelPreferredOrganization" runat="server" Text="Preferred Organisation"
                            CssClass="st-labeltext level1-5" AssociatedControlID="CbxPreferredOrganization"></asp:Label><asp:CheckBox
                                ID="CbxPreferredOrganization" runat="server" /></div>
                    <div class="clear">
                        <asp:Label ID="lblCheckOrgName" runat="server" 
                            ForeColor="#FF3300"></asp:Label></div></div><div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelShortDescription" runat="server" Text="Organisation Short Description"
                            CssClass="st-labeltext level1 required" AssociatedControlID="TxtShortDescription">
                            <asp:RequiredFieldValidator ID="RequiredShortDescription" runat="server" ErrorMessage="* Please input Short Description "
                                Display="None" SetFocusOnError="true" ForeColor="red" ControlToValidate="TxtShortDescription"
                                ValidationGroup="org" />
                        </asp:Label><asp:TextBox ID="TxtShortDescription" CssClass="st-forminput" runat="server"
                            Width="194px" TextMode="MultiLine" Rows="3" Height="52px"></asp:TextBox></div><div class="half last">
                        <asp:Label ID="LabelInterest" runat="server" Text="Expression of Interest" CssClass="st-labeltext level1-5"
                            AssociatedControlID="CbxInterest"></asp:Label><asp:CheckBox ID="CbxInterest" runat="server"
                                AutoPostBack="True" OnCheckedChanged="CbxInterest_CheckedChanged" /><div class="clear">
                                </div>
                        <br />
                        <asp:Label ID="LabelTypeOfBusiness" runat="server" Text="Type of Business" CssClass="st-labeltext level1 required"
                            AssociatedControlID="txtBussinessName">
                            <asp:RequiredFieldValidator ID="RequiredTypeOfBusiness" runat="server" ErrorMessage="* Please input type of bussiness"
                                Display="None" SetFocusOnError="true" ForeColor="red" ControlToValidate="txtBussinessName"
                                ValidationGroup="org" />
                        </asp:Label><asp:TextBox ID="txtBussinessName" CssClass="st-forminput st-disable"
                            ClientIDMode="Static" runat="server" Width="150px" ReadOnly="True"></asp:TextBox><asp:LinkButton
                                ID="ButtonTypeOfBusinessLookup" runat="server" CssClass="hg-blue" Text="Lookup"
                                OnClientClick="OpenPopupBussiness()" /></div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelLeadContact" runat="server" Text="Lead Contact" CssClass="st-labeltext level1"
                            AssociatedControlID="txtContact">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="* Please input lead contact "
                                Display="None" SetFocusOnError="true" ForeColor="red" ControlToValidate="txtContact"
                                ValidationGroup="org" /></asp:Label><asp:TextBox ID="txtContact" ClientIDMode="Static"
                                    CssClass="st-forminput st-disable" runat="server" Width="150px" ForeColor="Gray"
                                    ReadOnly="True"></asp:TextBox><asp:LinkButton ID="ButtonContactLookup" runat="server"
                                        CssClass="hg-blue" Text="Lookup" OnClientClick="OpenPopup()" />
                    </div>
                    <div class="half last">
                        <asp:Label ID="LabelSicCode" runat="server" Text="SIC" CssClass="st-labeltext level1"
                            AssociatedControlID="TxtSicCode"></asp:Label><asp:TextBox ID="TxtSicCode" ClientIDMode="Static"
                                CssClass="st-forminput st-disable" runat="server" Width="50px" Enabled="False"></asp:TextBox><asp:HiddenField
                                    ID="hdnBussId" ClientIDMode="Static" runat="server" />
                    </div>
                    <div class="clear">
                        <asp:HiddenField ID="hdnContactId" ClientIDMode="Static" runat="server" />
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelAddressLine1" runat="server" Text="Address Line 1" CssClass="st-labeltext level1 required"
                            AssociatedControlID="TxtAddressLine1">
                            <asp:RequiredFieldValidator ID="RequiredAddressLine1" runat="server" ErrorMessage="* Please input address Line 1"
                                Display="None" SetFocusOnError="true" ForeColor="red" ControlToValidate="TxtAddressLine1"
                                ValidationGroup="org" />
                        </asp:Label><asp:TextBox ID="TxtAddressLine1" CssClass="st-forminput" runat="server"
                            Width="210px"></asp:TextBox><br /><br /><asp:Label ID="LabelAddressLine2" runat="server" Text="Address Line 2" CssClass="st-labeltext level1"
                            AssociatedControlID="TxtAddressLine2"></asp:Label><asp:TextBox ID="TxtAddressLine2"
                                CssClass="st-forminput" runat="server" Width="210px"></asp:TextBox><br /><br /><asp:Label ID="LabelAddressLine3" runat="server" Text="Address Line 3" CssClass="st-labeltext level1"
                            AssociatedControlID="TxtAddressLine3"></asp:Label><asp:TextBox ID="TxtAddressLine3"
                                CssClass="st-forminput" runat="server" Width="210px"></asp:TextBox></div><div class="half last">
                        <asp:Label ID="LabelFullDescription" runat="server" Text="Full Description" CssClass="st-labeltext level1"
                            AssociatedControlID="TxtFullDescription"></asp:Label><asp:TextBox ID="TxtFullDescription"
                                CssClass="st-forminput" runat="server" Width="210px" TextMode="MultiLine" Rows="3"
                                Height="52px"></asp:TextBox><br /><br /><asp:Label ID="LabelPhoneNumber" runat="server" Text="Phone Number" CssClass="st-labeltext level1 required"
                            AssociatedControlID="TxtPhoneNumber">
                            <asp:RequiredFieldValidator ID="RequiredPhoneNumber" runat="server" ErrorMessage="* Please input phone number"
                                Display="None" SetFocusOnError="true" ForeColor="red" ControlToValidate="TxtPhoneNumber" ValidationGroup="org" />
                        </asp:Label><asp:TextBox ID="TxtPhoneNumber" CssClass="st-forminput" runat="server"
                            ToolTip="Input number 0-9" Width="210px"></asp:TextBox><div class="clear">
                                <asp:RegularExpressionValidator ID="RequiredP" runat="server" ControlToValidate="TxtPhoneNumber"
                                    Display="None" SetFocusOnError="true" ErrorMessage="*phone number must digit"
                                    ForeColor="Red" ValidationExpression="[0-9]{10}" ValidationGroup="org"></asp:RegularExpressionValidator></div></div><div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelPostcode" runat="server" Text="Postcode" CssClass="st-labeltext level1 required"
                            AssociatedControlID="TxtPostcode">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="* Please input Post code"
                                Display="None" SetFocusOnError="true" ForeColor="red" ControlToValidate="txtPostCode"
                                ValidationGroup="org" />
                        </asp:Label><asp:TextBox ID="txtPostCode" CssClass="st-forminput st-disable" ClientIDMode="Static"
                            runat="server" Width="150px" ReadOnly="True"></asp:TextBox><asp:LinkButton ID="ButtonPostcodeLookup"
                                runat="server" CssClass="hg-blue" Text="Lookup" OnClientClick="OpenPopupAddress()" /></div>
                    <div class="half last">
                        <asp:Label ID="LabelFax" runat="server" Text="Fax" CssClass="st-labeltext level1"
                            AssociatedControlID="TxtFax">  </asp:Label><asp:TextBox ID="TxtFax" CssClass="st-forminput"
                                runat="server" Width="210px"></asp:TextBox><div class="clear">
                                </div>
                    </div>
                    <div class="clear">
                        <asp:HiddenField ID="hdnAddressId" ClientIDMode="Static" runat="server" />
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelCityTown" runat="server" Text="City/Town" CssClass="st-labeltext level1"
                            AssociatedControlID="TxtCityTown"></asp:Label><asp:TextBox ID="TxtCityTown" CssClass="st-forminput"
                                runat="server" Width="210px"></asp:TextBox></div><div class="half last">
                        <asp:Label ID="LabelEmail" runat="server" Text="Email" CssClass="st-labeltext level1"
                            AssociatedControlID="TxtEmail">
                             
                        </asp:Label><asp:TextBox ID="TxtEmail" CssClass="st-forminput" ToolTip="Example:Tom@gmail.com"
                            runat="server" Width="210px"></asp:TextBox><div class="clear">
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TxtEmail"
                                    Display="None" EnableTheming="True" ValidationGroup="org" ErrorMessage="*Email format is invalid"
                                    ForeColor="Red" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></div></div><div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelCounty" runat="server" Text="County" CssClass="st-labeltext level1"
                            AssociatedControlID="TxtCounty"></asp:Label><asp:TextBox ID="TxtCounty" CssClass="st-forminput"
                                runat="server" Width="210px"></asp:TextBox></div><div class="half last">
                        <asp:Label ID="LabelWebAddress" runat="server" Text="Web Address" CssClass="st-labeltext level1"
                            AssociatedControlID="TxtWebAddress"> </asp:Label><asp:TextBox ID="TxtWebAddress"
                                CssClass="st-forminput" runat="server" Width="210px"></asp:TextBox><div class="clear">
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ForeColor="Red"
                                        ControlToValidate="TxtWebAddress" Display="None" ValidationGroup="org" ErrorMessage="Web Address format is invalid"
                                        ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?"></asp:RegularExpressionValidator></div></div><div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelNationCounty" runat="server" Text="Nation County" CssClass="st-labeltext level1"
                            AssociatedControlID="DdlNationCounty"></asp:Label><asp:DropDownList ID="DdlNationCounty"
                                DataTextField="CountryName" DataValueField="CountryId" runat="server" CssClass="st-forminput"
                                Width="220px">
                            </asp:DropDownList>
                    </div>
                    <div class="half last">
                        <asp:Label ID="LabelCharityNumber" runat="server" Text="Charity Number" CssClass="st-labeltext level1"
                            AssociatedControlID="TxtCharityNumber"></asp:Label><asp:TextBox ID="TxtCharityNumber"
                                CssClass="st-forminput" runat="server" Width="210px"></asp:TextBox></div><div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        &nbsp;<asp:Label ID="Label7" runat="server" Font-Bold="True" Font-Size="Smaller"
                            ForeColor="#009900"></asp:Label></div><div class="half last">
                        <asp:Label ID="LabelCompanyNumber" runat="server" Text="Company Number" CssClass="st-labeltext level1"
                            AssociatedControlID="TxtCompanyNumber"></asp:Label><asp:TextBox ID="TxtCompanyNumber"
                                CssClass="st-forminput" runat="server" Width="210px"></asp:TextBox></div><div class="clear">
                    </div>
                </div>
            </asp:Panel>
            <%-- pn2 --%><%--ADDRESS - POSTCODE LOOKUP--%><asp:Panel ID="DetailsPanel02" ClientIDMode="Static"
                runat="server">
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelOrgSpecial" runat="server" Text="Organization Specialism" CssClass="st-labeltext level1"
                            AssociatedControlID="CblOrgSpecial"></asp:Label><div class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CblOrgSpecial" runat="server" DataTextField="ItemName" DataValueField="Id">
                                    <asp:ListItem>Blind</asp:ListItem><asp:ListItem>Deaf</asp:ListItem><asp:ListItem>Dyslexia</asp:ListItem><asp:ListItem>Learning</asp:ListItem><asp:ListItem>Mental</asp:ListItem></asp:CheckBoxList></div></div><div class="half last">
                        <asp:Label ID="Label1" runat="server" Text="Service Personal Circumstances Capabilities"
                            CssClass="st-labeltext level1 checked-box-list" AssociatedControlID="CblCircumstances"></asp:Label><div
                                class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CblCircumstances" runat="server" DataTextField="ItemName" DataValueField="Id">
                                    <asp:ListItem>Carer Reponsibilities</asp:ListItem><asp:ListItem>Lone Parent</asp:ListItem></asp:CheckBoxList></div></div><div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="Label2" runat="server" Text="Service Disabilities Capabilities" CssClass="st-labeltext level1"
                            AssociatedControlID="CblOrgSpecial"></asp:Label><div class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CblDisabilities" runat="server">
                                    <asp:ListItem>Chest</asp:ListItem><asp:ListItem>Condition</asp:ListItem><asp:ListItem>Diabetes</asp:ListItem><asp:ListItem Value="Difficulty">Diffi</asp:ListItem></asp:CheckBoxList></div></div><div class="half last">
                        <asp:Label ID="Label3" runat="server" Text="Service Ethnicity Capabilities" CssClass="st-labeltext level1"
                            AssociatedControlID="CblCircumstances"></asp:Label><div class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CblEthnicity" runat="server" DataTextField="ItemName" DataValueField="Id">
                                    <asp:ListItem>White British</asp:ListItem><asp:ListItem>White Irish</asp:ListItem><asp:ListItem>Other White</asp:ListItem><asp:ListItem Value="White &amp; Black">White and </asp:ListItem></asp:CheckBoxList></div></div><div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="Label4" runat="server" Text="Service Barriers Capabilities" CssClass="st-labeltext level1"
                            AssociatedControlID="CblBarriers"></asp:Label><div class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CblBarriers" runat="server" DataTextField="ItemName" DataValueField="Id">
                                    <asp:ListItem>Lone Parent</asp:ListItem><asp:ListItem>ESOL</asp:ListItem><asp:ListItem>Refugee</asp:ListItem><asp:ListItem Value="Basic Skills">Basic Skill</asp:ListItem></asp:CheckBoxList></div></div><div class="half last">
                        <asp:Label ID="Label5" runat="server" Text="Accreditation" CssClass="st-labeltext level1"
                            AssociatedControlID="CblAccreditation"></asp:Label><div class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CblAccreditation" runat="server" DataTextField="ItemName" DataValueField="Id">
                                    <asp:ListItem>Two Ticks</asp:ListItem><asp:ListItem>Inveestors</asp:ListItem><asp:ListItem>ISO 9001</asp:ListItem><asp:ListItem>ISO 1401</asp:ListItem></asp:CheckBoxList></div></div><div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="Label6" runat="server" Text="Service Benefits Capabilities" CssClass="st-labeltext level1 "
                            AssociatedControlID="CblBarriers"></asp:Label><div class="st-forminput left check-box-list">
                                <asp:CheckBoxList ID="CblBenefits" runat="server" DataTextField="ItemName" DataValueField="Id">
                                    <asp:ListItem>Disability leaving</asp:ListItem><asp:ListItem>Employee</asp:ListItem><asp:ListItem>Incapacity</asp:ListItem><asp:ListItem>Income</asp:ListItem></asp:CheckBoxList></div></div><div class="clear">
                    </div>
                </div>
            </asp:Panel>
            <asp:Panel ID="DetailsPanel03" ClientIDMode="Static" runat="server">
                <div class="st-form-line-noleft">
                    <asp:Label ID="LabelPrograms" runat="server" Text="EOI Programs" CssClass="st-labeltext level1"
                        AssociatedControlID="CblPrograms"></asp:Label><div class="st-forminput left check-box-list"
                            style="width: 250px; height: 150px;">
                            <asp:CheckBoxList ID="CblPrograms" runat="server" DataTextField="ProgramName" DataValueField="ProgramID">
                            </asp:CheckBoxList>
                        </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <asp:Label ID="LabelServices" runat="server" Text="EOI Services" CssClass="st-labeltext level1 checked-box-list"
                        AssociatedControlID="CblServices"></asp:Label><div class="st-forminput left check-box-list"
                            style="width: 250px; height: 150px;">
                            <asp:CheckBoxList ID="CblServices" runat="server">
                            </asp:CheckBoxList>
                        </div>
                    <div class="clear">
                    </div>
                </div>
            </asp:Panel>
        </div>
    </div>
</asp:Content>
